﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace com.iot.core.boot.configuration
{
    public class MongoSetting : IConfig
    {
        public string Address { get; set; }
        public string ReplicaSetName { get; set; } = "";
        public int ConnectTimeout { get; set; } = 5;

        public string Database { get; set; } = "Iot";
        [JsonIgnore]
        public string Name
        {
            get
            {
                return "Mongo";
            }
        }

        /// <summary>
        /// Gets an order of configuration
        /// </summary>
        /// <returns>Order</returns>
        public int GetOrder() => 0; //display first

    }
}
